package com.cash.loan.modular.cash.dao;

import com.cash.loan.modular.cash.model.LoanStrategy;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cash.loan.modular.cash.transfer.LoanStrategyListVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 贷款攻略表 Mapper 接口
 * </p>
 *
 * @author yangbo123
 * @since 2018-07-20
 */
public interface LoanStrategyMapper extends BaseMapper<LoanStrategy> {


    /**
     * 获取列表
     * @param keyword
     * @param sDate
     * @param eDate
     * @return
     */
    List<LoanStrategyListVo> getLoanStrategyList(@Param("keyword") String keyword,
                                                 @Param("sDate") Date sDate,
                                                 @Param("eDate") Date eDate);

    /**
     * 获取详情
     * @param id
     * @return
     */
    Map<String,Object> getStrategyContentById(@Param("id") Long id);
}
